<?php

include "connect.php";
$ss_id=$_POST['ss_id'];
$roll_no=$_POST['roll_no'];
$session_id=$_POST['session_id'];
$subject_id=$_POST['subject_id'];
$class_id=$_POST['class_id'];


$sq=mysql_query("select * From student_subject where ss_id='$ss_id'");
while ($row = mysql_fetch_array($sq)) {
$sql=mysql_query("UPDATE student_subject SET ss_id='$ss_id',roll_no='$roll_no',session_id='$session_id',subject_id='$subject_id',class_id='$class_id'
where ss_id='$ss_id'");



}
header("location:update_student_subject_success.php");
?>